<div class="experiencias view">
<h2><?php  __('Experiencia');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $experiencia['Experiencia']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Curriculo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($experiencia['Curriculo']['name'], array('controller' => 'curriculos', 'action' => 'view', $experiencia['Curriculo']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Empresa'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($experiencia['Empresa']['name'], array('controller' => 'empresas', 'action' => 'view', $experiencia['Empresa']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $experiencia['Experiencia']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Salario'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $experiencia['Experiencia']['salario']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Moeda'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($experiencia['Moeda']['name'], array('controller' => 'moedas', 'action' => 'view', $experiencia['Moeda']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regime Salario'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($experiencia['RegimeSalario']['name'], array('controller' => 'regime_salarios', 'action' => 'view', $experiencia['RegimeSalario']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Area'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($experiencia['Area']['title'], array('controller' => 'areas', 'action' => 'view', $experiencia['Area']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Data Inicio'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $experiencia['Experiencia']['data_inicio']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Data Fim'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $experiencia['Experiencia']['data_fim']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Trabalho Actual'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $experiencia['Experiencia']['trabalho_actual']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Descricao'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $experiencia['Experiencia']['descricao']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Experiencia', true), array('action' => 'edit', $experiencia['Experiencia']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Experiencia', true), array('action' => 'delete', $experiencia['Experiencia']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $experiencia['Experiencia']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Experiencias', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Experiencia', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Curriculos', true), array('controller' => 'curriculos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Curriculo', true), array('controller' => 'curriculos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Empresas', true), array('controller' => 'empresas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Empresa', true), array('controller' => 'empresas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Moedas', true), array('controller' => 'moedas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Moeda', true), array('controller' => 'moedas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Regime Salarios', true), array('controller' => 'regime_salarios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Regime Salario', true), array('controller' => 'regime_salarios', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Areas', true), array('controller' => 'areas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Area', true), array('controller' => 'areas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tempos', true), array('controller' => 'tempos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tempo', true), array('controller' => 'tempos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Tempos');?></h3>
	<?php if (!empty($experiencia['Tempo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($experiencia['Tempo'] as $tempo):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $tempo['id'];?></td>
			<td><?php echo $tempo['name'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'tempos', 'action' => 'view', $tempo['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'tempos', 'action' => 'edit', $tempo['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'tempos', 'action' => 'delete', $tempo['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $tempo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Tempo', true), array('controller' => 'tempos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
